package cn.nju.sirx.algorithm.sort;

/**
 * The interface of a sorting class, which sorts elements from small to large.
 * 
 * @author SirX
 */
public interface ISort {

    /**
     * Sort the comparable elements in an array.
     * 
     * @param <T> data type, must be a sub-type of Comparable
     * @param data an array of comparable elements
     */
    public <T extends Comparable<? super T>> void sort(/*in, out*/ T[] data);

}
